<div class="row-fluid">

<div class="span12 pad_all">
<div class="span2">
<label class="col-lg-2 control-label"><b>Case No.</b></label>
<input type="text" class="span8" readonly="readonly" value="<?php echo $case->case_no; ?>">
<label class="col-lg-2 control-label"><b>Docket No.</b> </label>
<input type="text" class="span8" readonly="readonly" value="<?php echo $case->docket_no;?>"/>
</div><div class="span8"> </div>
<div class="span1">
<a href="<?php echo site_url(); ?>/engineer/repair/completed_repair" class="btn btn-danger">BACK</a>



</div>
</div>
<br>
<br>
<br>
<div class="span11">
<div class="span2">
</div>
<div class="span3">
<label class="col-lg-2 control-label"><b>Model No. </b></label>
<input type="text" readonly="readonly"value="<?php echo $cus->model_no;?>" >
<label class="col-lg-2 control-label"><b>Serial No. </b></label>
<input type="text" readonly="readonly"value="<?php echo $cus->serial_no;?>">
<label class="col-lg-2 control-label"><b>Operating System</b></label>
<input type="text" readonly="readonly"value="<?php echo $cus->operating_system;?>">
<label class="col-lg-2 control-label"><b>Issue Reported</b></label>
<textarea rows="5" readonly="readonly" /> <?php echo $cus->issue_reported;?></textarea>
</div>

<div class="span3">
<label class="col-lg-2 control-label"><b>Product No. </b></label>
<input type="text" readonly="readonly"value="<?php echo $cus->product_no;?>"/>
<label class="col-lg-2 control-label"><b>Password </b></label>
<input type="text"readonly="readonly"value="<?php echo $cus->password;?>">
<label class="col-lg-2 control-label"><b>Country Of Purchase </b></label>
<input type="text"readonly="readonly"value="<?php echo $cus->country_purchase;?>">
<label class="col-lg-2 control-label"><b>Diagnosis Report</b></label>
<textarea rows="5"readonly="readonly"/><?php echo $cus->engineer_diagnosis;?></textarea>
</div>
<div class="span3">
<label class="col-lg-2 control-label"><b>Assigned Date </b></label>
<input type="text" readonly="readonly"value="<?php echo $repair->assigned_date;?>"/>
<label class="col-lg-2 control-label"><b>Expected Date</b></label>
<input type="text"readonly="readonly"value="<?php echo $repair->expected_date;?>">
<label class="col-lg-2 control-label"><b>Completion Date </b></label>
<input type="text"readonly="readonly"value="<?php echo $repair->completion_date;?>">
<label class="col-lg-2 control-label"><b> Report</b></label>
<textarea rows="5"readonly="readonly"/></textarea>
</div>
</div>
<div class="span11 pad_all">
<legend>Part Replaced Detail</legend>
<table width="100%" class="table table-bordered" >
  <tr class="info">
               <td><b>SO No.</b></td>
               <td><b>Old Part Image</b></td>
			   <td><b>Old Part Image</b></td>
			   <td><b>Old Part Image</b></td>
			   <td><b>Old Part Image</b></td>
			  <td><b>New Part Image</b></td>
			  <td><b>New Part Image</b></td>
			  <td><b>New Part Image</b></td>
		      <td><b> New Part Image</b></td>
            
             </tr>
			
 <tbody id="p_scents">   
<?php foreach($so as $part)
{?>

  <tr><label for="p_scnts">
   <td><input type="text" readonly="readonly" value="<?php echo $part->so_no;?>" class="span8"name="so_no"/></td>
   <?php  $count=0;?>
 <?php foreach($this->repair_model->get_image($part->id) as $image)

{?>

 <td width="10%" height="5%"><img src="<?= $this->config->base_url(); ?>uploads/<?php echo $image->image;?>" alt="logo" width="80" height="50"/></td>
 <?php $count=$count+1;  ?> <?php }?>
 
  <?php foreach($this->repair_model->get_imagenew($part->id) as $image){?>
   <td width="10%" height="5%"><img src="<?= $this->config->base_url(); ?>uploads/<?php echo $image->image;?>" alt="logo" width="80" height="50"/></td>
<?php } ?>
  </tr>
  </tbody>
  <?php } ?>
</table>
<?php if( !empty($expense)){?>
<legend>Expenses</legend>
<table width="100%" class="table table-bordered" id="expense_table" >
  <tr class="info">
               <td><b>Travel</b></td>
               <td><b>Fooding</b></td>
			   <td><b>Accomodation</b></td>
			  <td><b>Conveyance </b></td>
			  <td><b> Other</b></td>
			  <td><b>Total</b></td>
			 
			
            
             </tr>
			
 <tbody id="p_scents">
 <tr><label for="p_scnts">
    <td ><input type="text"  class="span12"  name="travel_expense"  readonly="readonly"     id="travel_expense" value="<?php echo $expense->travel;?>" />    </td>
    <td ><input type="text"  class="span12"  name="fooding_expense"  readonly="readonly"    id="fooding_expense" value="<?php echo $expense->fooding;?>"  />   </td>
	<td><input  type="text"  class="span12"  name="accomodation_expense"readonly="readonly" id="accomodation_expense" value="<?php echo $expense->accomodation;?>"/></td>
	<td ><input type="text"  class="span12"  name="conveyance_expense" readonly="readonly"  id="conveyance_expense" value="<?php echo $expense->conveyance;?>" /> </td>
	<td ><input type="text"  class="span12"  name="other_expense" readonly="readonly"       id="other_expense" value="<?php echo $expense->other;?>"/>       </td>
	<td ><input type="text"  class="span12"  name="total" readonly="readonly"       id="total" value="<?php echo $expense->total;?>"/>       </td>
 </label> </tr>  </tbody>
</table>

<?php } else{ }?>
</div>
</div>




